package reusingclass;


public class Exercise20 {
}

class Ex20Temp1 {
	private void f1() {
		System.out.println("ExTemp1.f1()");
	}
	
	void f2() {
		System.out.println("ExTemp1.f2()");
	}
	
	protected void f3() {
		System.out.println("ExTemp1.f3()");
	}
	
	public void f4() {
		System.out.println("ExTemp1.f4()");
	}
}


class Ex20Temp2 extends Ex20Temp1 {
//	@Override private void f1() {
//		System.out.println("Ex20Temp2.f1()");
//	}
	
	@Override void f2() {
		System.out.println("Ex20Temp2.f2()");
	}
	
	@Override protected void f3() {
		System.out.println("Ex20Temp2.f3()");
	}
	
	@Override public void f4() {
		System.out.println("Ex20Temp2.f4()");
	}
}